import request from '@/utils/request'

export function getSkuListBySpuId(query) {
  return request({
    url: '/sku/list',
    method: 'get',
    params: query
  })
}

export function getSku(id) {
  return request({
    url: '/sku/getById/' + id,
    method: 'get'
  })
}

export function saveSku(data) {
  return request({
    url: '/sku/save',
    method: 'post',
    data
  })
}

export function deleteSku(id) {
  return request({
    url: '/sku/deleteById/'+id,
    method: 'post'
  })
}


